
public class BarOp extends BitwiseOp {

	public BarOp() {
		super("|");
	}
	@Override
	public boolean isBarOp() { 
		return true;
	}
	
	@Override
	public STO calculate(ConstSTO left, ConstSTO right) {
		ConstSTO sto;
		sto = new ConstSTO((left.getName() + "|" + right.getName()), new IntType(), 
				  Integer.toString(left.getIntValue() | right.getIntValue()));
		return sto;
	}

}
